Skip to content

Generate fips/UserGuide.md from updatecryptodocs with Go structs#2394

Merged
karianna merged 1 commit into
microsoft:microsoft/mainfrom
dagood:dev/dagood/gen-user-guide
Jul 5, 2026
Merged

Generate fips/UserGuide.md from updatecryptodocs with Go structs#2394
karianna merged 1 commit into
microsoft:microsoft/mainfrom
dagood:dev/dagood/gen-user-guide

Conversation

@dagood

@dagood dagood commented Jul 2, 2026

Copy link
Copy Markdown
Member

Update eng/_util/cmd/updatecryptodocs to also maintain the user guide.

I haven't reviewed the generator code in depth, just made sure it has a reasonable-looking amount of structure, and the changes to the doc are reasonable.

Fixes some typos and broken links as a side effect.

Copilot AI review requested due to automatic review settings July 2, 2026 20:59
@dagood dagood requested a review from a team as a code owner July 2, 2026 20:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends eng/_util/cmd/updatecryptodocs to also generate eng/doc/fips/UserGuide.md from structured Go data plus embedded narrative Markdown, keeping the User Guide maintained by the same tooling used for CrossPlatformCryptography.md.

Changes:

  • Add a User Guide generator (userguide.go) driven by structured content (userguide_content.go) plus embedded preamble/intro Markdown.
  • Introduce a shared crypto package registry (packages.go) and use it to keep generated docs’ package links consistent.
  • Update updatecryptodocs CLI + tests to support generating crossplatform, userguide, or all, and add a reproducibility test for the User Guide.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
eng/doc/fips/UserGuide.md Regenerated User Guide output (now marked generated; includes typo/link fixes).
eng/_util/cmd/updatecryptodocs/userguide.go New renderer + TOC generator for the User Guide.
eng/_util/cmd/updatecryptodocs/userguide_content.go New structured “source of truth” for User Guide package/API content + link refs.
eng/_util/cmd/updatecryptodocs/userguide_preamble.md Embedded User Guide preamble text.
eng/_util/cmd/updatecryptodocs/userguide_using.md Embedded “backends” + “using APIs” narrative section.
eng/_util/cmd/updatecryptodocs/packages.go New shared registry/helpers for package ordering and pkg.go.dev links.
eng/_util/cmd/updatecryptodocs/updatecryptodocs.go CLI extended to generate multiple docs; package-link printing now uses shared registry.
eng/_util/cmd/updatecryptodocs/updatecryptodocs_test.go Adds reproducibility test for the generated User Guide.

Comment thread eng/_util/cmd/updatecryptodocs/userguide_content.go
Comment thread eng/_util/cmd/updatecryptodocs/userguide_content.go
Comment thread eng/_util/cmd/updatecryptodocs/userguide_content.go
Comment thread eng/_util/cmd/updatecryptodocs/userguide_content.go
Comment thread eng/_util/cmd/updatecryptodocs/userguide_content.go
Comment thread eng/_util/cmd/updatecryptodocs/userguide_content.go
@dagood

dagood commented Jul 2, 2026

Copy link
Copy Markdown
Member Author

Marked all AI comments as resolved. There are problems in the document, but this PR is just adding tooling. Problems should be fixed as followup instead.

@dagood dagood mentioned this pull request Jul 2, 2026

@gdams gdams left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like this a lot!

@karianna karianna merged commit 8b4dc58 into microsoft:microsoft/main Jul 5, 2026
56 checks passed
@dagood dagood deleted the dev/dagood/gen-user-guide branch July 6, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants